home *** CD-ROM | disk | FTP | other *** search
/ Apple Developer Connection 1998 Fall: Game Toolkit / Disc.iso / Samples / Moofwars 1.02 / MoofWars Sprocket / •Headers / AppConditionals.h next >
Encoding:
C/C++ Source or Header  |  1998-08-15  |  1.8 KB  |  46 lines  |  [TEXT/CWIE]

  1. /*************************************************************************************
  2. #
  3. #    CONDITIONALS
  4. #
  5. #    There are a number of conditionals used to control exactly how the game will actually
  6. #    run, along with debugging constraints.
  7. #
  8. #
  9. #    qDebugging  -- Whether or not additional debugging code should be inserted.  With this
  10. #   turned on, most errors will DebugStr almost immediately and return errors as the error
  11. #   propagates up the calling chain.  This is slower, but if you've found a weird bug,
  12. #   this is the fastest way to replicate it.
  13. #
  14. #    qSyncTiming -- When this is on, we always try to sync the frame rate to 30 frames per
  15. #   second, skipping frames if necessary to try to keep this appearance on the screen. If
  16. #   this is turned off, we'll process frames as fast as we can, without attempting to sync
  17. #   to a specific timing value.
  18. #
  19. #    qUsePageFlip -- If this is turned on, we'll attempt to set up a draw context that allows
  20. #   page flipping.  If this is off, we'll always use double buffering.
  21. #
  22. #    qSyncToDrawVBL -- if this is turned on, we'll attempt to sync to draw sprocket's VBL.
  23. #   If this is off, we'll get some tearing, but we don't wait for draw sprocket.
  24. #
  25. #    qShotsHaveRange -- if this is on, shows will eventually fade and disappear.  If this is
  26. #   off, shots last forever.
  27. #
  28. qShowTiming -- if this is on, we'll display our frame rate estimate and the number of
  29. #   shots on the board in the lower left corner.
  30. #
  31. qUsingSound -- If this is off, all of the sound code is dead stripped.
  32. #
  33. *************************************************************************************/
  34.  
  35. #ifndef __APPCONDITIONALS__
  36. #define __APPCONDITIONALS__
  37.  
  38. #define qDebugging 0
  39. #define qSyncTiming 0
  40. #define qUsePageFlip 0
  41. #define qSyncToDrawVBL 0
  42. #define qShotsHaveRange 0
  43. #define qShowTiming 1
  44. #define qUsingSound 0
  45.  
  46. #endif